package cn.niit.dao;

import cn.niit.entity.Attendance;
import cn.niit.entity.Student;
import cn.niit.entity.query.AttendanceQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 考勤表(Attendance)表数据库访问层
 *
 * @author makejava
 * @since 2021-11-14 16:05:58
 */
public interface AttendanceDao {
    //查询所有考勤信息
    List<Attendance> queryAll(AttendanceQuery attendanceQuery);


    //根据班级编号查询考勤信息
    List<Attendance> queryByClassCode(AttendanceQuery attendanceQuery);


    //根据条件查询
    List<Attendance> select(AttendanceQuery attendanceQuery);

    //根据id查询考勤信息
    Attendance queryAttendanceById(Integer id);

    //增加考勤信息
    int addAttendance(Attendance attendance);

    //修改考勤信息
    int editAttendance(Attendance attendance);

    //删除考勤信息
    int deleteAttendanceById(Integer id);
}